def ihrm_assert(resp, status_code, success, code, message,data=None):
    assert resp.status_code == status_code
    assert resp.json()['success'] is success
    assert code == resp.json()['code']
    assert message in resp.json()['message']
    if data is not None:
        assert data in str(resp.json()['data'])
